home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 24 aspnet applications / aspnetapplications / web.config < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-18  |  3.4 KB  |  81 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3.     
  4.   <system.web>
  5.  
  6.     <!--  DYNAMIC DEBUG COMPILATION
  7.           Set compilation debug="true" to insert debugging symbols (.pdb information)
  8.           into the compiled page. Because this creates a larger file that executes
  9.           more slowly, you should set this value to true only when debugging and to
  10.           false at all other times. For more information, refer to the documentation about
  11.           debugging ASP.NET files.
  12.     -->
  13.     <compilation defaultLanguage="vb" debug="true" />
  14.  
  15.     <!--  CUSTOM ERROR MESSAGES
  16.           Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
  17.           Add <error> tags for each of the errors you want to handle.
  18.     -->
  19.     <customErrors mode="RemoteOnly" />
  20.  
  21.     <!--  AUTHENTICATION 
  22.           This section sets the authentication policies of the application. Possible modes are "Windows", 
  23.           "Forms", "Passport" and "None"
  24.     -->
  25.     <authentication mode="Windows" /> 
  26.  
  27.     <!--  AUTHORIZATION 
  28.           This section sets the authorization policies of the application. You can allow or deny access
  29.           to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
  30.           (unauthenticated) users.
  31.     -->
  32.     <authorization>
  33.         <allow users="*" /> <!-- Allow all users -->
  34.  
  35.             <!--  <allow     users="[comma separated list of users]"
  36.                              roles="[comma separated list of roles]"/>
  37.                   <deny      users="[comma separated list of users]"
  38.                              roles="[comma separated list of roles]"/>
  39.             -->
  40.     </authorization>
  41.  
  42.     <!--  APPLICATION-LEVEL TRACE LOGGING
  43.           Application-level tracing enables trace log output for every page within an application. 
  44.           Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
  45.           trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
  46.           application trace log by browsing the "trace.axd" page from your web application
  47.           root. 
  48.     -->
  49.     <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByCategory" localOnly="true" />
  50.  
  51.     <!--  SESSION STATE SETTINGS
  52.           By default ASP.NET uses cookies to identify which requests belong to a particular session. 
  53.           If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
  54.           To disable cookies, set sessionState cookieless="true".
  55.     -->
  56.     <sessionState 
  57.             mode="InProc"
  58.             stateConnectionString="tcpip=127.0.0.1:42424"
  59.             sqlConnectionString="data source=127.0.0.1;user id=sa;password="
  60.             cookieless="false" 
  61.             timeout="20" 
  62.     />
  63.  
  64.     <!--  GLOBALIZATION
  65.           This section sets the globalization settings of the application. 
  66.     -->
  67.     <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
  68.    
  69.     <!--  Custom HTTP Handlers    -->
  70.    <httpHandlers>
  71.       <add verb="*" path="*.xyz" type="AspnetApplications.XyzHandler,AspnetApplications" />
  72.    </httpHandlers>
  73.  
  74.     <!--  Custom HTTP Modules -->
  75.     <httpModules>
  76.         <add name="ErrorLogger" type="AspnetApplications.ErrorLoggerModule,AspnetApplications" />
  77.     </httpModules>   
  78.   </system.web>
  79.  
  80. </configuration>
  81.